//
//  BHCircleDetailReviewBottomView.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/12.
//

import UIKit
protocol BHCircleDetailReviewBottomViewDelegate {
    func didTapReviewAct()
}

class BHCircleDetailReviewBottomView: UIView {

    @IBOutlet weak var input_backView: UIView!
    var delegate: BHCircleDetailReviewBottomViewDelegate?
    
    
    static func loadFromXib() -> BHCircleDetailReviewBottomView {
        let viewArray = Bundle.main.loadNibNamed("BHCircleDetailReviewBottomView", owner: nil, options: nil)
        let view: BHCircleDetailReviewBottomView = viewArray![0] as! BHCircleDetailReviewBottomView
        return view
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.input_backView.addLayerCorner(15, 0, .white)
        
        self.input_backView.addViewAction {[weak self] (_) in
            self?.delegate?.didTapReviewAct()
        }
        
    }

}
